<?php
//站点初始化配置文件  如果用户保存了其中某个字段 则会保存在数据库中 没保存 会获取这里的默认值
//应用插件配置文件 最好都从这里配置  可以快速适配saas站点
return [
    ['name' => '基本设置',
        'list' => [
            [
                'content' => '网站名称',
                // /** val 字段编辑类型 */
                // img = 选择图片
                // text= 单行文本输入
                // content = 多行文本
                // select = 单选选择框
                // richtext = 富文本
                // video =视频选择
                // music = 音频选择
                // color =  选择颜色
                // map = 定位选择
                // down_select  下拉选择器
                // system_article = 系统文章选择 用户选择后会得到一个文章id
                // key 选择秘钥 上传  cert = 秘钥 crt 秘钥 都是本地上传
                // time_frame     日期范围选择
                // date_selection 单个日期选择
                  // 如果以上没有特殊字段类型 可以单独写样式 把is_show 设置成 false 然后自己写样式
                'val' => 'text',
                 //保存的字段  保持唯一,
                'field' => 'website_name',
                'placeholder' => '请输入网站名称',
                //选择框 多选的json数据
                'json' => '',
                'notes' => '',
                 //1是秘钥类型 0 不是秘钥类型 ,
                 'mkey' => '0',
                //默认值,
                'default_value'=>'',
                //插件设置中是否显示     遇见没有的类型 可以不显示 自己写样式,
                'is_show'      =>  true,
            ],
            
            [
                'content' => '微信小程序banner广告id',
                'val' => 'text',
                'field' => 'weixin_banner_ad',
                'placeholder' => '请输入小程序banner广告id',
                'json' => '',
                'notes' => '',
                'mkey' => '0',
                'default_value'=>'',
                'is_show'      =>  true,
            ],


           [
                'content' => '底部导航diy',
                'field' => 'plugin_tabbar',
                'placeholder' => '',
                'val'   => 'list',
                'json'  => '',
                'notes' => '',
                'mkey'  => '0',
                'default_value'=>  [
                                          [
                                            'id'  =>1,  //保持id唯一 必须
                                            'pagePath'  =>  '/pages/dianzishouxieqianming/index/index',
                                            'iconPath' => 'plugin/dianzishouxieqianming/view/plugin_static/images/home.png',
                                            'selectedIconPath'  =>  'plugin/dianzishouxieqianming/view/plugin_static/images/home.png',
                                            'text'        => '签名',
                                            'selected_color' => '#FF1493',
                                            'color'   => '#6e6e6e',
                                            'islogin' => false,
                                          ],
                                            [
                                            'id'  =>3,
                                            'pagePath'  =>  '/pages/dianzishouxieqianming/other/other',
                                            'iconPath' =>   'plugin/dianzishouxieqianming/view/plugin_static/images/me.png',
                                            'selectedIconPath'  =>   'plugin/dianzishouxieqianming/view/plugin_static/images/me.png',
                                            'text'        => '其他工具',
                                            'selected_color' => '#FF1493',
                                            'color'   => '#6e6e6e',
                                            'islogin' => false
                                          ],
                                          
                                          
                                   ],
                'value'        =>  '' ,
                'is_show'      =>  false,
            ],
             [
                'content' => '个人中心导航1',
                'field' => 'my_list1',
                'placeholder' => '',
                'val'   => 'list',
      
                'json'  => 'id,url',
                'notes' => '',
                'mkey'  => '0',
                'default_value'=> [
                                          [
                                            'id'  =>1,
                                            'name'  =>  '待付款',
                                            'is_login' => true,
                                            'url'  =>  '../../pages/miaomiao/order_list?id=1',
                                            'img'        => 'plugin/dianzishouxieqianming/view/plugin_static/images/me.png',
                                            'standby' => '1',
                                            'count'   => 'type1_count',
                                          ],
                                          [
                                            'id'  =>2,
                                            'name'  =>  '待分享',
                                            'is_login' => true,
                                            'url'  =>  '../../pages/miaomiao/order_list?id=1',
                                            'img'        =>'plugin/dianzishouxieqianming/view/plugin_static/images/me.png',
                                            'standby' => '1',
                                            'count'   => 'type1_count',
                                          ],
                                          [
                                           'id'  =>3,
                                            'name'  =>  '待发货',
                                            'is_login' => true,
                                            'url'  =>  '../../pages/miaomiao/order_list?id=1',
                                            'img'        => 'plugin/dianzishouxieqianming/view/plugin_static/images/me.png',
                                            'standby' => '1',
                                            'count'   => 'type1_count',
                                          ],
                                          [
                                           'id'  =>4,
                                            'name'  =>  '待收货',
                                            'is_login' => true,
                                            'url'  =>  '../../pages/miaomiao/order_list?id=1',
                                            'img'        => 'plugin/dianzishouxieqianming/view/plugin_static/images/me.png',
                                            'standby' => '1',
                                            'count'   => 'type1_count',
                                          ],
                                          [
                                            'id'  =>5,
                                            'name'  =>  '待评价',
                                            'is_login' => true,
                                            'url'  =>  '../../pages/miaomiao/order_list?id=1',
                                            'img'        => 'plugin/dianzishouxieqianming/view/plugin_static/images/me.png',
                                            'standby' => '1',
                                            'count'   => 'type1_count',
                                          ],
                                          
                                   ],
  
                'value'        =>  '' ,
                'is_show'      =>  false,
            ],
             [
                'content' => '个人中心导航2',
                'field' => 'my_list2',
                'placeholder' => '',
                'val'   => 'list',
                'json'  => '',
                'notes' => '',
                'mkey'  => '0',
                'default_value'=>  [
                                          [
                                            'id'  =>1,
                                            'name'  =>  '我的发布',
                                            'is_login' => true,
                                            'url'  =>  '../../pages/miaomiao/order_list?id=1',
                                            'img'        => 'plugin/dianzishouxieqianming/view/plugin_static/images/me.png',
                                            'standby' => '1',
                                            'count'   => 'type1_count',
                                          ],
                                          [
                                            'id'  =>2,
                                            'name'  =>  '我的收藏',
                                            'is_login' => true,
                                            'url'  =>  '../../pages/miaomiao/order_list?id=1',
                                            'img'        => 'plugin/dianzishouxieqianming/view/plugin_static/images/me.png',
                                            'standby' => '1',
                                            'count'   => 'type1_count',
                                          ],
                                          [
                                            'id'  =>3,
                                            'name'  =>  '联系我们',
                                            'is_login' => true,
                                            'url'  =>  '../../pages/miaomiao/order_list?id=1',
                                            'img'        => 'plugin/dianzishouxieqianming/view/plugin_static/images/me.png',
                                            'standby' => '1',
                                            'count'   => 'type1_count',
                                          ],
                                         
                                          
                                   ],
                'value'        =>  '' ,
                'is_show'      =>  false,
            ],
        ]
    ],
    ['name' => '微信小程序',
        'list' => [
            [
                'content' => '微信小程序名称',
                'val' => 'text',
                'field' => 'wx_mp_name',
                'placeholder' => '请输入小程序名称',
                'json' => '',
                'notes' => '',
                'mkey' => '0',
                'default_value'=>'',
                'is_show'      =>  true,
            ],
            [
                'content' => '小程序码',
                'val' => 'img',
                'field' => 'wx_mp_qrcode',
                'placeholder' => '请上传小程序码',
                'json' => '',
                'notes' => '',
                'mkey' => '0',
                'default_value'=>'',
                'is_show'      =>  true,
            ],
            [
                'content' => 'AppID',
                'val' => 'text',
                'field' => 'wx_appid',
                'placeholder' => '请输入微信小程序AppID',
                'json' => '',
                'notes' => '',
                'mkey' => '1',
                'default_value'=>'',
                'is_show'      =>  true,
            ],
            [
                'content' => 'AppSecret',
                'val' => 'text',
                'field' => 'wx_secret',
                'placeholder' => '请输入微信小程序AppSecret',
                'json' => '',
                'notes' => '',
                'mkey' => '1',
                'default_value'=>'',
                'is_show'      =>  true,
            ],
            [
                'content' => '手机号验证方式',
                'val' => 'select',
                'field' => 'wx_login_sms',
                'placeholder' => '选择手机验证方式',
                'json' => ' [{"text":"短信验证码","value":0},{"text":"微信小程序授权","value":1}]',
                'notes' => '选择短信验证码请在系统设置中开启短信注册功能并配置短信',
                'mkey' => '0',
                'default_value'=>'',
                'is_show'      =>  true,
            ],
        ]
    ],
   
];
